package cn.fl.risknew.service;

import cmm.mid.core.framework.page.KeyValueVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.risknew.condition.RskCommRecQueryCondition;
import cn.fl.risknew.vo.RskCommRecVO;
import fl.customer.facade.customer.dto.CstContactInfoDTO;

import java.util.List;

/**
 * @Description: 沟通记录表 客户端服务层接口
 * 业务层方法名称前缀：
 * 新增：add*
 * 删除：remove*
 * 修改：modify*
 * 批量：batch*
 * 查询对象：select* get*
 * 查询集合：search*
 */
public interface IRskCommRecNewService {

    /**
     * 获取唯一对象
     *
     * @param id 主键
     * @return 对象DTO
     */
    public RskCommRecVO selectById(Long id) throws BaseException;

    /**
     * 新增
     *
     * @param entity
     * @return
     */
    public Long add(RskCommRecVO entity) throws BaseException;

    /**
     * 批量删除
     *
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids) throws BaseException;

    /**
     * 修改
     *
     * @param entity
     * @return
     */
    public boolean modify(RskCommRecVO entity) throws BaseException;

    /**
     * 分页查询所有
     *
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page) throws BaseException;

    /**
     * 根据条件查询所有
     *
     * @param condition
     * @return
     */
    public List<RskCommRecVO> searchList(RskCommRecQueryCondition condition) throws BaseException;

    /**
     * 获取催收方式
     *
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> getCollectWayCdList() throws BaseException;
    
    /**
     * 外呼沟通状态
     *
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> getCommStsCdList() throws BaseException;

    /**
     * 获取催收结果
     *
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> getCollectRstCdList() throws BaseException;

    /**
     * 获取欠款原因
     *
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> getOvdReasonCdList() throws BaseException;

    /**
     * 获取客户还款方式
     *
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> getPayTypCdList() throws BaseException;

    /**
     * 根据客户ID查询客户联系人信息
     *
     * @param idList
     * @return
     */
    public List<CstContactInfoDTO> searchCstLkMan(List<Long> idList) throws BaseException;

    /**
     * 根据客户ID查询贷前风险标记
     * @param cstId
     * @return str 逗号分隔 去重
     */
    public String searchPreLoanRskInfo(Long cstId);

}
